package com.atguigu.orderservice.client;

import com.atguigu.commonutils.ClientEntity.ClientCourse;
import com.atguigu.orderservice.client.impl.courseClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@Component
@FeignClient(name = "service-edu",fallback = courseClientImpl.class)
public interface CourseClient {

    /*根据课程id获取课程信息*/
    @ApiOperation(value = "这里是用于远程调用的")
    @GetMapping("/eduservice/course/getCourseInfoClient/{courseId}")
    ClientCourse getCourseInfoClient(@PathVariable(value = "courseId") String courseId);


}